package com.service.impl;

import java.io.Serializable;
import java.util.List;

import com.dao.BindingDao;
import com.enetiy.Areausable;
import com.enetiy.Binding;
import com.service.BindingService;

public class BindingServiceImpl implements BindingService {
	private BindingDao bindingDao;
	 
	public Serializable insertBinding(Binding bin) throws Exception {
		return bindingDao.insertBinding(bin);
	}
	 
	public void deleteBingding(Binding bin) throws Exception {
		bindingDao.deleteBingding(bin);
	}

	 
	public List<Binding> selsctBindingUsers(int uid) throws Exception {
		return bindingDao.selsctBindingUsers(uid);
	}

	public void setBindingDao(BindingDao bindingDao) {
		this.bindingDao = bindingDao;
	}
	 
	public Binding selsctBindingUsers(int usersid, int area) throws Exception {
		return bindingDao.selsctBindingUsers(usersid, area);
	}

	@Override
	public Binding selectBindingAcct(String acct,int areainfo_id) throws Exception {
		
		return bindingDao.selectBindingAcct(acct, areainfo_id);
	}

	@Override
	public int selectRadiusNum(int radius) throws Exception {
		
		return bindingDao.selectRadiusNum(radius);
	}

	@Override
	public void updateBinding(Binding bin) throws Exception {
		bindingDao.updateBinding(bin);
		
	}

	@Override
	public List<Binding> selectBindingAvailable(int userid,
			List<Areausable> areabusable) throws Exception {
		return bindingDao.selectBindingAvailable(userid, areabusable);
	}

	@Override
	public Binding selsctbinding(String acct, int areaid, int userid)
			throws Exception {
		return bindingDao.selsctbinding(acct, areaid, userid);
	}

	@Override
	public Binding selectBinding(int bindingid) throws Exception {
		return bindingDao.selectBinding(bindingid);
	}

	@Override
	public Binding selectbinding(String acct, int areaid) throws Exception {
		return bindingDao.selectbinding(acct, areaid);
	}

	@Override
	public Binding selectbinding(int userid, int areaid) throws Exception {
		return bindingDao.selectbinding(userid, areaid);
	}

	@Override
	public Binding selsctbinding(String acct, int areaid, String pwd)
			throws Exception {
		return bindingDao.selsctbinding(acct, areaid, pwd);
	}
}
